package cn.wei.sdd.core.service.impl;

import cn.wei.sdd.core.pojo.entity.InWarehouse;
import cn.wei.sdd.core.mapper.InWarehouseMapper;
import cn.wei.sdd.core.pojo.query.InWarehouseQuery;
import cn.wei.sdd.core.pojo.vo.InWarehouseVO;
import cn.wei.sdd.core.service.InWarehouseService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 入库表 服务实现类
 * </p>
 *
 * @author Wei
 * @since 2021-11-04
 */
@Service
public class InWarehouseServiceImpl extends ServiceImpl<InWarehouseMapper, InWarehouse> implements InWarehouseService {

    @Override
    public IPage<InWarehouseVO> listPage(Page<InWarehouseVO> pageParam, InWarehouseQuery inWarehouseQuery) {
        if (inWarehouseQuery==null){
            return baseMapper.mySelectPage(pageParam,null);
        }else{
            return baseMapper.mySelectPage(pageParam,inWarehouseQuery);
        }

    }
}
